#!/usr/bin/env python2
#-*-coding=utf-8-*-

def even_number(even):
    all = []
    num = 0
    for i in range(even + 1):
        if i % 2 == 0:
            all.append(i)
    return all
def easy_even_number(even):
    all = []
    all.append([num for num in range(even + 1) if num % 2 == 0])
    return all
def odd_number(odd):
    all = []
    num = 0
    for i in range(odd + 1):
        if i % 2 == 1:
            all.append(i)
    return all
def easy_odd_number(odd):
    all = []
    all.append([num for num in range(odd + 1) if num % 2 == 1])
    return all
if __name__ == '__main__':
    choice = raw_input('e：求偶数。o：求奇数。: ')
    while choice != 'e' and choice != 'o':
        choice = raw_input('e：求偶数。o：求奇数。: ')
    num = raw_input('最大数：')
    if choice == 'e':
        print even_number(int(num))
        print easy_even_number(int(num))
    else:
        print odd_number(int(num))
        print easy_odd_number(int(num))
